﻿@model MSDAL.Lekcje

<div class="modal fade" id="lekcje-edytowanie-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">ID lekcji: @Model.IDLekcji</h4>
            </div>
            <div class="modal-body">
                @using (Html.BeginForm("Edit", "Lekcjes", FormMethod.Post))
                {
                    @Html.ValidationSummary(true, "", new { @class = "text-danger" })
                    @Html.HiddenFor(model => model.IDLekcji)
                    @Html.AntiForgeryToken()

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Uczeń:</label>
                        @Html.DropDownList("IDUcznia", null, htmlAttributes: new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.IDUcznia, "", new { @class = "text-danger" })
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Nauczyciel:</label>
                        @Html.DropDownList("IDNauczyciela", null, htmlAttributes: new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.IDNauczyciela, "", new { @class = "text-danger" })
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Instrument:</label>
                        @Html.DropDownList("IDInstrumentu", null, htmlAttributes: new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.IDInstrumentu, "", new { @class = "text-danger" })
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Data Lekcji:</label>
                        @Html.EditorFor(model => model.Data, new { htmlAttributes = new { @id = "dataNowa", @class = "form-control" } })
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Sala:</label>
                        @Html.DropDownList("IDSali", null, htmlAttributes: new { @class = "form-control" })
                        @Html.ValidationMessageFor(model => model.IDSali, "", new { @class = "text-danger" })
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Czy rozliczona:</label>
                        <div class="checkbox">
                            @Html.EditorFor(model => model.CzyRozliczona)
                            @Html.ValidationMessageFor(model => model.CzyRozliczona, "", new { @class = "text-danger" })
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Zatwierdzona:</label>
                        <div class="checkbox">
                            @Html.EditorFor(model => model.CzyZatwierdzona)
                            @Html.ValidationMessageFor(model => model.CzyZatwierdzona, "", new { @class = "text-danger" })
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Wypłacona:</label>
                        <div class="checkbox">
                            @Html.EditorFor(model => model.CzyWyplacona)
                            @Html.ValidationMessageFor(model => model.CzyWyplacona, "", new { @class = "text-danger" })
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Cena ucznia:</label>
                        @Html.EditorFor(model => model.CenaLekcjiUcznia, new { htmlAttributes = new { @class = "form-control" } })
                        @Html.ValidationMessageFor(model => model.CenaLekcjiUcznia, "", new { @class = "text-danger" })
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Cena nauczyciela:</label>
                        @Html.EditorFor(model => model.CenaLekcjiNauczyciela, new { htmlAttributes = new { @class = "form-control" } })
                        @Html.ValidationMessageFor(model => model.CenaLekcjiNauczyciela, "", new { @class = "text-danger" })
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Komentarz:</label>
                        @Html.EditorFor(model => model.Komentarz, new { htmlAttributes = new { @class = "form-control" } })
                        @Html.ValidationMessageFor(model => model.Komentarz, "", new { @class = "text-danger" })
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Typ lekcji:</label>
                        @Html.EditorFor(model => model.TypLekcji, new { htmlAttributes = new { @class = "form-control" } })
                        @Html.ValidationMessageFor(model => model.TypLekcji, "", new { @class = "text-danger" })
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Czy uczeń L4:</label>
                        <div class="checkbox">
                            @Html.EditorFor(model => model.CzyUczenL4)
                            @Html.ValidationMessageFor(model => model.CzyUczenL4, "", new { @class = "text-danger" })
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="recipient-name" class="control-label">Czas Trwania Lekcji:</label>
                        @Html.EditorFor(model => model.CzasTrwaniaLekcji)
                    </div>

                    <div class="modal-footer">
                        <input type="submit" value="Zapisz" class="btn btn-default" />
                    </div>
                }
            </div>
        </div>
    </div>
</div>

